package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "基础实体类")
public class BaseEntity {
    /**
     * 描述
     */
    @TableField(exist = false)
    private String description;

    /**更新时间*/
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;
    /**创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    /**创建人*/
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    /**更新人*/
    @TableField(fill = FieldFill.INSERT)
    private String updateBy;
}
